package com.xiaozhen.common.core.domain;

import java.util.Objects;

/**
 * HISTORY
 *
 * @author zhenweisheng
 * @date 2021/12/2 10:20
 * @description:
 */
public class ScpConnectEntity {

    private String userName;
    private String passWord;
    private String url;
    private String targetPath;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTargetPath() {
        return targetPath;
    }

    public void setTargetPath(String targetPath) {
        this.targetPath = targetPath;
    }

    @Override
    public String toString() {
        return "ScpConnectEntity{" +
                "userName='" + userName + '\'' +
                ", passWord='" + passWord + '\'' +
                ", url='" + url + '\'' +
                ", targetPath='" + targetPath + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        ScpConnectEntity that = (ScpConnectEntity) o;
        return Objects.equals(userName, that.userName) &&
                Objects.equals(passWord, that.passWord) &&
                Objects.equals(url, that.url) &&
                Objects.equals(targetPath, that.targetPath);
    }

    @Override
    public int hashCode() {
        return Objects.hash(userName, passWord, url, targetPath);
    }
}
